import request from '@/utils/request'
const baseURL = "http://127.0.0.1:3006"

export function productList(params) {
    return request({
        url: '/api/product/list',
        method: 'get',
        baseURL
    })
}

export function detailProduct(data) {
    return request({
        url: '/api/product/detail',
        method: 'post',
        baseURL,
        data
    })
}

export function delProduct(data) {
    return request({
        url: '/api/product/del',
        method: 'post',
        baseURL,
        data
    })
}


export function addEditProduct(data) {
    return request({
        url: '/api/product/addEdit',
        method: 'post',
        baseURL,
        data
    })
}